 import actions from "./actions";
const microApps = [
  {
    name: 'app-vue',
    entry: '//localhost:8002/app-vue/',
    activeRule: '/app-vue'
  },
  {
    name: 'app-vue1',
    entry: '//localhost:8003/app-vue1/',
    activeRule: '/app-vue1'
  }
];

const apps = microApps.map((app) => {
  return {
    ...app,
    container: '#app-micro',
    props: {
      routerBase: app.activeRule, // 下发基础路由
      temmpData:{name:'小强',age:25},
      parentActions:actions
    },
    loader(loading) {
      console.log('loading', loading);
    }
  };
});

export default apps;
